from PyQt5.QtWidgets import *
from PyQt5.QtCore import *
from PyQt5.QtGui import *
import sys
# 帮我们直接运行此文件时，可以加载到上级目录的ui包
sys.path.append("../")

from ui.Ui_upper_car_widget import Ui_UpperCarWidget


class UpperCarWidget(QWidget):

    def __init__(self, parent : QMainWindow=None):
        super().__init__(parent)
        self.ui = Ui_UpperCarWidget()
        self.ui.setupUi(self)
        # if parent is not None:
        #     parent.statusBar().showMessage("haha", 1000)

        self.init_ui()

    def init_ui(self):
        pass


if __name__ == '__main__':
    app = QApplication(sys.argv)

    window = UpperCarWidget()
    window.show()

    sys.exit(app.exec_())